package cn.itcast.order.remote;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "userApi", value = "userservice", fallbackFactory = UserApiFallbackFactory.class)
public interface UserApi {

    @PostMapping("/user/save")
    String saveUser(@RequestBody JSONObject jsonObject);
}
